import java.util.Scanner;
import java.util.HashMap;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2024-01-11
 * Time: 14:18
 */

//本题为模拟订餐

interface Order {
    void askFor(int num);
}

class Meal {
    HashMap<String,Integer> meal;

    Meal() {
        meal = new HashMap<String,Integer>();
        meal.put("Rice",0);
        meal.put("Dish",0);
        meal.put("Soup",0);
    }

    void setMeal(Order o, int i) {
        /** ----------begin---------*/
      o.askFor(i);
      if(o instanceof OrderRice) {
          Integer n = meal.get("Rice");
          meal.put("Rice",n+((OrderRice)o).n);
      }
        if(o instanceof OrderDish) {
            Integer n = meal.get("Dish");
            meal.put("Dish",n+((OrderDish)o).n);
        }
        if(o instanceof OrderSoup) {
            Integer n = meal.get("Soup");
            meal.put("Soup",n+((OrderSoup)o).n);
        }
        /** ----------end---------*/
    }

    public String toString() {
        String s = "Your meal is ";
        s = s + meal.get("Rice")+" Rice, ";
        s = s + meal.get("Dish")+" Dish, ";
        s = s + meal.get("Soup")+" Soup. ";
        return s;
    }
}

//定义OrderRice类
class OrderRice implements Order {
    int n = 0;
    String strName;
    /** 定义构造方法*/
    /**
     * ----------begin---------
     */
    OrderRice(String strName) {
        this.strName = strName;
    }
    /** ----------end---------*/

    /** 实现接口方法*/
    /**
     * ----------begin---------
     */
    public void askFor(int n) {
        if(n < 0) {
            return;
        }
        this.n = n;
    }
        /** ----------end---------*/
    }

//定义OrderDish类
class OrderDish implements Order {
    int n = 0;
    String strName;
    /** 定义构造方法*/
    /**
     * ----------begin---------
     */
    OrderDish(String strName) {
        this.strName = strName;
    }
    /** ----------end---------*/

    /** 实现接口方法*/
    /**
     * ----------begin---------
     */
    public void askFor(int n) {
        if(n < 0) {
            return;
        }
        this.n = n;
    }
        /** ----------end---------*/
    }


//定义OrderSoup类
class OrderSoup implements Order {
    int n = 0;
    String strName;
    /** 定义构造方法*/
    /**
     * ----------begin---------
     */
    OrderSoup(String strName) {
        this.strName = strName;
    }
    /** ----------end---------*/

    /** 实现接口方法*/
    /**
     * ----------begin---------
     */
    public void askFor(int n) {
        if(n < 0) {
            return;
        }
        this.n = n;
    }
        /** ----------end---------*/
    }


public class Main {
        public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            String[] s = new String[3];
            Meal m = new Meal();
            for(int i = 0; i < 3; i++) {
                s = sc.nextLine().split(" ");
                if(s[0].equals("Rice")) {
                    m.setMeal(new OrderRice("Rice"),Integer.valueOf(s[1]));
                }
                if(s[0].equals("Dish")) {
                    m.setMeal(new OrderRice("Dish"),Integer.valueOf(s[1]));
                }
                if(s[0].equals("Soup")) {
                    m.setMeal(new OrderRice("Soup"),Integer.valueOf(s[1]));
                }
            }
            System.out.println(m);
        }
    }

